package com.blue.jdbc.model;

import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;

@Table(name = "group")
public class Group
{
	@Id
	private Integer id;

	private String name;

	public Group()
	{
	}

	public Group(String name)
	{
		this.name = name;
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Override
	public String toString()
	{
		return String.format("id: %d, name: %s", id, name);
	}

	
}
